package com.personal.ifanya.application.aop;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSON; 

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.jsoup.helper.Validate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Aspect
public class InputDTOChecker{

		private static final Logger log = LoggerFactory.getLogger(InputDTOChecker.class);
 
		/**
		 * 语法： and !execution(...);
		 */
		public static final String ExcludedFunctions =  "";//" and !execution(* com.dianping.pay.promo.rule.execute..service.remote.*ServiceImpl.*(..))";  
		
		public static final String ServiceExecutePoint = ""; //"execution(* com.jgjq.huatuo.application.service.*Service.*(..))" + ExcludedFunctions;
		
		@Before(value = ServiceExecutePoint, argNames="inputDTO")
		public void around(Object inputDTO) {
			Validate.notNull(inputDTO, "Input dto could not be null.");
	    }
 
}
